﻿@model Proggy.Web.Cms.Core.PropertyTypes.UrlSelector
@{
    // get components
    var href = Model.AddedUrl.GetHrefComponent();
    var text = Model.AddedUrl.Text;
    var title = Model.AddedUrl.LinkTitle;
    var target = Model.AddedUrl.UrlType == AddedUrlType.External ? "target=\"_blank\" " : "";   
}

<a class="us-autorendered" @(target)title="@(title)" href="@(href)">@text</a>
